package com.example.entity;

import com.example.entity.enums.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    Integer id;
    String username;
    String password;
    Role role;
    Integer isLocked;
    Date lastLoginTime;
    Integer createdBy;
    Integer updatedBy;
    Date createdAt;
    Date updatedAt;
    Integer isDeleted;
    //数据表外的字段
    String token;
}
